/* eslint-disable spaced-comment */
/* eslint-disable eqeqeq */
/* eslint-disable comma-dangle */
/* eslint-disable quotes */
/* eslint-disable semi */
import { reqData } from "@/utils/myMock";
const state = {
  list: {},
};
const mutations = {
  GETDATA(state, value) {
    state.list = value;
  },
};
const actions = {
  async getData(context) {
    await reqData().then((result) => {
      context.commit("GETDATA", result);
    });
  },
};
const getters = {};
export default {
  state,
  mutations,
  actions,
  getters,
};
